package pso.tsp;

/**
 * @Author: 陶鹏飞
 * @Description:
 * @Date: 2018/9/10-14:13
 * @email: taopengfei1223@foxmail.com
 **/
public class City {
    private int mId;       //城市编号
    private String mName;  //城市名称
    private float mLongitude; //经度
    private float mLatitude; //经度

    public City(int id, String name, float longitude, float latitude) {
        mId = id;
        mName = name;
        mLongitude = longitude;
        mLatitude = latitude;
    }

    public int getId() {
        return mId;
    }

    public void setId(int id) {
        mId = id;
    }

    public String getName() {
        return mName;
    }

    public void setName(String name) {
        mName = name;
    }

    public float getLongitude() {
        return mLongitude;
    }

    public void setLongitude(float longitude) {
        mLongitude = longitude;
    }

    public float getLatitude() {
        return mLatitude;
    }

    public void setLatitude(float latitude) {
        mLatitude = latitude;
    }
}
